import Vue from 'vue'
import Router from 'vue-router'
import home from '@/components/home'
/*========================自营商城=================================*/
import selfbusinesscity from '@/components/selfbusinesscity'
import immediatelyorder from '@/components/immediatelyorder'
import ordersuccess from '@/components/ordersuccess'
import autotrophy from '@/components/autotrophy'
import order from '@/components/order'

/*=============================自营商城结束=================================*/
/**
 * 登陆 忘记密码模块
 */
import login from '@/components/login'
import forgetpwd1 from '@/components/forgetpwd1'
import forgetpwd2 from '@/components/forgetpwd2'
import forgetpwd3 from '@/components/forgetpwd3'
import forgetpwd4 from '@/components/forgetpwd4'
/*====================== 登陆   忘记密码结束 =============================*/

/*====================== 咨询中心开始 =============================*/

import askcenter from '@/components/askcenter'

import askdatiel from '@/components/askdatiel'


/*====================== 咨询中心结束 =============================*/


/*====================== 技术专家开始 =============================*/

import technology from '@/components/technology'
import technologyinte from '@/components/technologyinte'
import technologylist from '@/components/technologylist'
import technologytell from '@/components/technologytell'

/*====================== 技术专家结束 =============================*/






/*====================== 客户资源 开始 =============================*/

import customer from '@/components/customer'
import customerdetails from '@/components/customerdetails'
import goodsdetails from '@/components/goodsdetails'

/*====================== 客户资源 结束 =============================*/



/*==================================塑云金融开始========================================*/
import syfinance from '@/components/syfinance'
import syfinanceform from '@/components/syfinanceform'
/*==================================塑云金融结束========================================*/

/*==================================物性库   开始========================================*/
import physical from '@/components/physical'

import physicaldetails from '@/components/physicaldetails'


/*==================================物性库   结束========================================*/


/*====================== 企业中心 开始 =============================*/

import companycenter from '@/components/companycenter'
import myorder from '@/components/myorder'
import toaudited from '@/components/toaudited'
import todetermined from '@/components/todetermined'
import topayment from '@/components/topayment'
import togoods from '@/components/togoods'
import bidding from '@/components/bidding'
import myserver from '@/components/myserver'
import myasset from '@/components/myasset'
import myincome from '@/components/myincome'
import mybill from '@/components/mybill'
import management from '@/components/management'
import publish from '@/components/publish'
import myfirm from '@/components/myfirm'
import myinform from '@/components/myinform'
import mystaff from '@/components/mystaff'
import addstaff from '@/components/addstaff'
import myorderDetails from '@/components/myorderDetails'



/*====================== 企业中心 结束 =============================*/

/*====================== 我的订单 开始 =============================*/



/*====================== 我的订单 结束 =============================*/


Vue.use(Router)

export default new Router({
  routes: [
   
    // 首页
    {
      path: '/',
      name: 'home',
      component: home
    },
    /*======================//自营商城===========================*/
    {
      path: '/selfbusinesscity',
      name: 'selfbusinesscity',
      component: selfbusinesscity
    }, {
      path: '/immediatelyorder',
      name: 'immediatelyorder',
      component: immediatelyorder
    }, {
      path: '/ordersuccess',
      name: 'ordersuccess',
      component: ordersuccess
    }, 
    {
      path: '/autotrophy',
      name: 'autotrophy',
      component: autotrophy
    },
    {
      path: '/order',
      name: 'order',
      component: order
    },
    /*=========================自营商城结束==================================*/

    /*===================登陆 忘记密码模块==============================*/
    {
      path: '/login',
      name: 'login',
      component: login

    }, {
      path: '/forgetpwd1',
      name: 'forgetpwd1',
      component: forgetpwd1
    }, {
      path: '/forgetpwd2',
      name: 'forgetpwd2',
      component: forgetpwd2
    }, {
      path: '/forgetpwd3',
      name: 'forgetpwd3',
      component: forgetpwd3
    }, {
      path: '/forgetpwd4',
      name: 'forgetpwd4',
      component: forgetpwd4
    },
    /*==========================登陆 忘记密码结束===================================*/

    /*======================================塑云金融开始=========================================*/

    {
      path: '/syfinance',
      name: 'syfinance',
      component: syfinance
    },
    {
      path: '/syfinanceform',
      name: 'syfinanceform',
      component: syfinanceform
    },

    /*======================================塑云金融结束=========================================*/

    /*====================== 客户资源 开始 =============================*/
    ,
    {
      path: '/customer',
      name: 'customer',
      component: customer
    },
    {
      path: '/customerdetails',
      name: 'customerdetails',
      component: customerdetails
    },
    {
      path: '/goodsdetails',
      name: 'goodsdetails',
      component: goodsdetails
    }


    /*====================== 客户资源 结束 =============================*/

    /*====================== 咨询中心 开始 =============================*/
    , {
      path: '/askcenter',
      name: 'askcenter',
      component: askcenter
    }, {
      path: '/askdatiel',
      name: 'askdatiel',
      component: askdatiel

    }, {
      path: '/askdatiel',
      name: 'askdatiel',
      component: askdatiel

    }

    /*====================== 咨询中心 结束 =============================*/





    /*====================== 技术专家 开始 =============================*/

    , {
      path: '/technology',
      name: 'technology',
      component: technology

    }, {
      path: '/technologyinte',
      name: 'technologyinte',
      component: technologyinte

    }, {
      path: '/technologylist',
      name: 'technologylist',
      component: technologylist

    }, {
      path: '/technologytell',
      name: 'technologytell',
      component: technologytell
    }
    /*====================== 技术专家 结束 =============================*/

    /*====================== 物性库 结束 =============================*/

    , {
      path: '/physical',
      name: 'physical',
      component: physical
    }, {
      path: '/physicaldetails',
      name: 'physicaldetails',
      component: physicaldetails
    }




    /*====================== 物性库 结束 =============================*/

    /*====================== 企业中心 开始 =============================*/


    , {
      path: '/companycenter',
      name: 'companycenter',
      component: companycenter,
      children: [
        // 默认我的订单
        {
          path: '',
          redirect: {
            name: 'myorder'
          }
        },
        // 我的订单
        {
          path: '/companycenter/myorder',
          name: 'myorder',
          component: myorder,
        }, 
        //待审核
        {
          path: '/companycenter/toaudited',
          name: 'toaudited',
          component: toaudited,
        },
        //待确定 todetermined
        {
          path: '/companycenter/todetermined',
          name: 'todetermined',
          component: todetermined,
        },
        //待付款
        {
          path: '/companycenter/topayment',
          name: 'topayment',
          component: topayment,
        },
        //待收货
        {
          path: '/companycenter/togoods',
          name: 'togoods',
          component: togoods,
        },
        // 我的竞价
        {
          path: '/companycenter/bidding',
          name: 'bidding',
          component: bidding
        },
        // 我的服务
        {
          path: '/companycenter/myserver',
          name: 'myserver',
          component: myserver
        },
        // 我的资产
        {
          path: '/companycenter/myasset',
          name: 'myasset',
          component: myasset
        },
        // 收支明细
        {
          path: '/companycenter/myincome',
          name: 'myincome',
          component: myincome
        },
        // 我的发票
        {
          path: '/companycenter/mybill',
          name: 'mybill',
          component: mybill
        },
        // 产品管理
        {
          path: '/companycenter/management',
          name: 'management',
          component: management
        },
        // 发布产品
        {
          path: '/companycenter/publish',
          name: 'publish',
          component: publish
        },
        // 我的企业
        {
          path: '/companycenter/myfirm',
          name: 'myfirm',
          component: myfirm
        },
        // 个人信息
        {
          path: '/companycenter/myinform',
          name: 'myinform',
          component: myinform
        },
        // 员工管理
        {
          path: '/companycenter/mystaff',
          name: 'mystaff',
          component: mystaff
        },
        // 添加员工
        {
          path: '/companycenter/addstaff',
          name: 'addstaff',
          component: addstaff
        },
        // 订单详情
        {
          path: '/companycenter/myorderDetails',
          name: 'myorderDetails',
          component: myorderDetails
        }

      ]
    }


    /*====================== 企业中心 结束 =============================*/



  ]
})
